<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>$Title$</title>
</head>
<body>

<div th:fragment="head" class="head">
    <ul style="text-align: center;color: rgb(14, 13, 13); background-color: #fff;" class="layui-nav" lay-filter="">
        <li class="layui-nav-item"
            th:class="${#httpServletRequest.requestURL.substring(#httpServletRequest.requestURL.lastIndexOf('/')+1).equals('index')?'layui-this layui-nav-item':'layui-nav-item'}">
            <a style="color: #000;"
               th:href="${#httpServletRequest.requestURL.substring(#httpServletRequest.requestURL.lastIndexOf('/')+1).equals('index')?'#':'/courier/index'}"
               href="/courier/index">首页</a></li>
        <li class="layui-nav-item "
            th:class="${#httpServletRequest.requestURL.substring(#httpServletRequest.requestURL.lastIndexOf('/')+1).equals('send')?'layui-this layui-nav-item':'layui-nav-item'}">
            <a style="color: #000;"
               th:href="${#httpServletRequest.requestURL.substring(#httpServletRequest.requestURL.lastIndexOf('/')+1).equals('send')?'#':'/courier/fetch'}"
               href="/courier/fetch">收件</a></li>
        <li class="layui-nav-item"
            th:class="${#httpServletRequest.requestURL.substring(#httpServletRequest.requestURL.lastIndexOf('/')+1).equals('search')?'layui-this layui-nav-item':'layui-nav-item'}">
            <a style="color: #000;"
               th:href="${#httpServletRequest.requestURL.substring(#httpServletRequest.requestURL.lastIndexOf('/')+1).equals('search')?'#':'/courier/deliver'}"
               href="/courier/deliver">派件</a></li>
        <li class="layui-nav-item">
            <a style="color: #000;" href="javascript:;">帮助</a>
            <dl class="layui-nav-child"> <!-- 二级菜单 -->
                <dd><a href="#"
                       th:text="${#httpServletRequest.requestURL.substring(#httpServletRequest.requestURL.lastIndexOf('/')+1)}">关于我们</a>
                </dd>
                <dd><a href="#">使用说明</a></dd>
            </dl>
        </li>
        <li style="float: right;margin-right: 20%;" class="layui-nav-item"><a style="color: #000;"
                                                                              th:href="${#httpServletRequest.requestURL.substring(#httpServletRequest.requestURL.lastIndexOf('/')+1).equals('index')?'#':'/courier/index'}"
                                                                              href="/courier/index"
                                                                              th:text="${session.get('SESSION_USER').username}">13434619817</a>
        </li>
    </ul>
</div>

</body>
</html>